package org.snail.transport;

import io.netty.channel.Channel;
import org.snail.transport.protocol.Message;

/**
 * snail连接
 *
 * Created by fish on 17/4/2.
 */
public class Connection {

    private Channel channel;

    public Connection(Channel channel){
        this.channel = channel;
    }

    public void write(Message message){
        channel.writeAndFlush(message);
    }

}
